package org.yu.team2023.flashdays.blockentity;

import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.inventory.MenuType;
import org.jetbrains.annotations.Nullable;
import org.yu.team2023.flashdays.ModBlockEntities;
import org.yu.team2023.flashdays.registries.EasyMenu;

public class TreasureUpgradeMenu extends EasyMenu<TreasureUpgradeEntity> {
    public TreasureUpgradeMenu( int pContainerId, Inventory playerInv, FriendlyByteBuf extraData) {
        super(ModBlockEntities.MenuTypes.TREASURE_UPGRADE_MENU.get(), pContainerId, playerInv, extraData);
        addSlotBox(getBlockEntity().getInputSlots(), 0,50,21,1,18,1,18);
        addSlotBox(getBlockEntity().getInputSlots(), 1,32,51,3,18,1,18);
        addSlotBox(getBlockEntity().getOutputSlots(), 0,124,12,2,18,2,18);
        layoutPlayerInventorySlots(14,84);
    }

    @Override
    public int getFirstOutputSlot() {
        return 4;
    }

    @Override
    public int getFirstInventorySlot() {
        return 8;
    }
}
